package com.ruoyi.custom.domain;

import java.math.BigDecimal;
import java.sql.Timestamp;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 账单管理对象 bill
 *
 * @author wule
 * @date 2024-04-08
 */
public class Bill2 extends BaseEntity
{
	private static final long serialVersionUID = 1L;

	/** 主键，唯一标识账单 */
	@Excel(name = "账单编码")
	private Long id;

	/** 顾客ID，可以是会员ID或者直接支付用户的ID */
	@Excel(name = "顾客编码")
	private Long customerId;

	/** 顾客类型，可以是会员或者非会员的标识 */
	@Excel(name = "顾客类型")
	private String customerType;

	/** 消费金额，保留2位小数，以确保金额的精确性 */
	@Excel(name = "消费金额")
	private BigDecimal amount;

	/** 支付方式，比如现金、信用卡、支付宝、微信等 */
	@Excel(name = "支付方式")
	private String paymentMethod;

	/** 消费时间戳，记录消费发生的时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Excel(name = "消费时间戳", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Timestamp createTime;

	/** 消费描述，可以记录消费的具体内容或者备注信息 */
	@Excel(name = "订单备注")
	private String description;

	/** 赘余字段 */
	private String keyOne;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Long customerId) {
		this.customerId = customerId;
	}

	public String getCustomerType() {
		return customerType;
	}

	public void setCustomerType(String customerType) {
		this.customerType = customerType;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getPaymentMethod() {
		return paymentMethod;
	}

	public void setPaymentMethod(String paymentMethod) {
		this.paymentMethod = paymentMethod;
	}

	@Override
	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getKeyOne() {
		return keyOne;
	}

	public void setKeyOne(String keyOne) {
		this.keyOne = keyOne;
	}

	public Bill2(Long customerId, String customerType, BigDecimal amount, String paymentMethod, Timestamp createTime, String description, String keyOne) {
		this.customerId = customerId;
		this.customerType = customerType;
		this.amount = amount;
		this.paymentMethod = paymentMethod;
		this.createTime = createTime;
		this.description = description;
		this.keyOne = keyOne;
	}


	@Override
	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
				.append("id", getId())
				.append("customerId", getCustomerId())
				.append("customerType", getCustomerType())
				.append("amount", getAmount())
				.append("paymentMethod", getPaymentMethod())
				.append("createTime", getCreateTime())
				.append("description", getDescription())
				.append("keyOne", getKeyOne())
				.toString();
	}
}
